package com.service.core.bean;


import com.service.core.enums.EnumDao;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 *
 * 排序基类
 */
@Setter
@Getter
@ToString
public class SimpleOrder {

    /**
     * 排序属性
     */
    private String property;

    /**
     * 排序方式
     */
    private EnumDao.OrderMode orderMode = EnumDao.OrderMode.ASC;

    public SimpleOrder() {
    }

    public SimpleOrder(String property, EnumDao.OrderMode orderMode) {
        this.property = property;
        this.orderMode = orderMode;
    }
}
